package com.xujl.mvcbind.bean;

import java.util.Objects;

public class ThreeMultiEntity implements ProviderMultiEntity {
    private String title;
    private String desc;
    private String url;

    public ThreeMultiEntity (String title, String desc, String url) {
        this.title = title;
        this.desc = desc;
        this.url = url;
    }

    public String getTitle () {
        return title;
    }

    public void setTitle (String title) {
        this.title = title;
    }

    public String getDesc () {
        return desc;
    }

    public void setDesc (String desc) {
        this.desc = desc;
    }

    public String getUrl () {
        return url;
    }

    public void setUrl (String url) {
        this.url = url;
    }

    @Override
    public int getProviderType () {
        return TYPE_THREE;
    }

    @Override
    public boolean equals (Object o) {
        if (this == o) return true;
        if (!(o instanceof ThreeMultiEntity)) return false;
        ThreeMultiEntity that = (ThreeMultiEntity) o;
        return getTitle().equals(that.getTitle()) &&
                getDesc().equals(that.getDesc()) &&
                getUrl().equals(that.getUrl());
    }

    @Override
    public int hashCode () {
        return Objects.hash(getTitle(), getDesc(), getUrl());
    }
}
